package yf.mall.vo.up;


import lombok.Data;

import java.util.Date;

import com.alibaba.excel.annotation.*;

import java.io.Serializable;


import java.math.BigDecimal;

import yf.mall.entity.TeamSaleEntity;
import yf.mall.vo.TeamSaleVo;


/**
 * 月销业绩实体
 * 表名 team_sale
 *
 * 
 * 
 * @date Wed Oct 27 14:46:14 CST 2021
 */
@Data
public class TeamSaleUp implements Serializable {
    @ExcelIgnore
    private static final long serialVersionUID = 1L;

    //
    @ExcelProperty("")
    private Long id;

    //业绩
    @ExcelProperty("业绩")
    private BigDecimal price;

    //相关订单
    @ExcelProperty("相关订单")
    private String orderNo;

    //时间
    @ExcelProperty("时间")
    private Date time;

    //用户ID
    @ExcelProperty("用户ID")
    private Long userId;


    public TeamSaleUp() {

    }

    public TeamSaleVo toVo() {

        TeamSaleEntity entity = new TeamSaleEntity();
        TeamSaleVo vo = new TeamSaleVo(entity);
        entity.setId(id);

        entity.setPrice(price);

        entity.setOrderNo(orderNo);

        entity.setTime(time);

        entity.setUserId(userId);

        return vo;
    }


}
